package cn.yitun.chat.yitunservercommonlib.converter.dto2vo.user;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.userchat.UserChatContentDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.userchat.UserChatContentVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface UserChatContentDto2VoConverter  {

    UserChatContentDto2VoConverter INSTANCE = Mappers.getMapper(UserChatContentDto2VoConverter.class);

    UserChatContentDto vo2dto(UserChatContentVo vo);

    List<UserChatContentDto> vo2dto(List<UserChatContentVo> voList);

    @InheritInverseConfiguration
    UserChatContentVo dto2vo(UserChatContentDto dto);

    @InheritInverseConfiguration
    List<UserChatContentVo> dto2vo(List<UserChatContentDto> dtoList);

}
